package com.roncoo.pay.permission.repository;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;

import com.roncoo.pay.permission.entity.PmsUserRole;

public interface PmsUserRoleRepository extends MongoRepository<PmsUserRole, String> {

	int deleteByUserId(String userId);

	List<PmsUserRole> findByUserId(String id);

	int deleteByRoleIdAndUserId(String roleId, String id);

	List<PmsUserRole> findByRoleId(String roleId);

}
